28 October 2017
    Â
     Â
Here we'll argue why use R for doing your plots:
library(raster)
library(mapview)
elvBtn = getData('alt', country='BTN', path='./assets/')
mapview(elvBtn)
http://www.metafor-project.org/doku.php/plots:funnel_plot_with_trim_and_fill
Vellend et. al 2013
http://www.metafor-project.org/doku.php/plots:forest_plot_with_subgroups
Vellend et al. 2013
Vellend et al. 2013
install.packages("ctv"); ctv::install.views("MetaAnalysis")
Guido Schwarzer author of meta
Schwarzer, Guido, James R. Carpenter, and Gerta Rücker. Meta-Analysis with R.
Wolfgang Viechtbauer author metafor
metabin()Arguments:
event.e: Number of events in experimental group.
n.e: Number of observations in experimental group.
event.c: Number of events in control group.
n.c: Number of observations in control group.
- `metabin()` / `metagen()`
Arguments:
TE: Estimate of treatment effect.
seTE: Standard error of treatment estimate.
- `metabin()` / `metagen()` - `funnel`, `forest`, ..
install.packages('meta')
library(meta)
data(Olkin95)
# ?Olkin95
meta1 <- metabin(event.e, n.e, event.c, n.c,
data=Olkin95, subset=c(41,47,51,59),
sm="RR", method="I",
studlab=paste(author, year))
forest(meta1)
| author | year | event.e | n.e | event.c | n.c |
|---|---|---|---|---|---|
| Fletcher | 1959 | 1 | 12 | 4 | 11 |
| Dewar | 1963 | 4 | 21 | 7 | 21 |
| Lippschutz | 1965 | 6 | 43 | 7 | 41 |
| European 1 | 1969 | 20 | 83 | 15 | 84 |
| European 2 | 1971 | 69 | 373 | 94 | 357 |
| Heikinheimo | 1971 | 22 | 219 | 17 | 207 |
Calculate effect size: escalc()
Perform analysis: rma()
Plots: funnel(), 'forest()', 'labbe()', …
install.packages('metafor')
library('metafor')
Data available on line as well Dataset S1
Vellend et al. 2013
library(wordcloud2) wordcloud2(demoFreq) wordcloud2(demoFreq, size = 2)
https://github.com/inSileco/wordcloud/blob/master/ourWordcloud.R
igraph
2 books:
Chen, Ding-Geng, and Karl E. Peace. Applied Meta-Analysis with R. Chapman & Hall/CRC Biostatistics Series. Boca Raton: CRC Press/Taylor & Francis Group, 2013. + companion website
Schwarzer, Guido, James R. Carpenter, and Gerta Rücker. Meta-Analysis with R. Use R! Cham: Springer International Publishing, 2015. https://doi.org/10.1007/978-3-319-21416-0.